package com.itheima.service;

import com.itheima.domain.Intervention;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/*
    健康干预服务层
 */
public interface InterventionService {

    //添加健康建议
    void add(Integer[] foodIds, Integer[] sportIds, Integer interventionId, String suggestion);

    //根据预约订单id查询膳食干预id
    List<Integer> findFoodIdsByOrderId(Integer orderId);

    //添加一条医师建议
    void adviseAdd(Intervention intervention, Integer[] foodIds, Integer[] sportIds);

    //根据预约订单id查询一个医生建议
    Intervention findByOrderId(Integer id);
}
